package com.example.yiwei.crm.view.frament.dockDetailedMenu;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.data.GetDock;
import com.example.yiwei.crm.entity.dockingEntity;

/**
 * Created by Administrator on 2017/4/5.
 */

public class mainFragment extends Fragment {
    private TextView txt_docking_name,txt_respectful,txt_phone,txt_mail,txt_weibo,txt_zip_code,txt_address;
    dockingEntity dockingEntity;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootView=inflater.inflate(R.layout.fragment_dock_main,container,false);
        txt_address= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_address);
        txt_docking_name= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_docking_name);
        txt_respectful= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_docking_respectful);
        txt_phone= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_phone);
        txt_mail= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_mail);
        txt_weibo= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_weibo);
        txt_zip_code= (TextView) rootView.findViewById(R.id.frm_dock_detailed_main_txt_zip_code);
         dockingEntity= GetDock.get();
        txt_address.setText(dockingEntity.getAddress());
        txt_docking_name.setText(dockingEntity.getDocking_name());
        txt_respectful.setText(dockingEntity.getRespectfully());
        txt_phone.setText(dockingEntity.getPhone_number());
        txt_mail.setText(dockingEntity.getMail());
        txt_weibo.setText(dockingEntity.getWeibo());
        txt_zip_code.setText(dockingEntity.getZip_code());
        return rootView;
    }
}
